{php include template("ajax/header");}
<script src="{SITE_URL}public/js/jquery-1.7.1.min.js" type="text/javascript"></script>
<script src="{SITE_URL}public/js/uploadify/jquery.uploadify.v2.1.4.js" type="text/javascript"></script>
<script src="{SITE_URL}public/js/uploadify/swfobject.js" type="text/javascript"></script>
<link type="text/css" rel="stylesheet" href="{SITE_URL}public/js/uploadify/uploadify.css" />
<script type="text/javascript">
$(document).ready(function()
{
	
	$("#uploadify").uploadify({
		'uploader': '{SITE_URL}public/js/uploadify/uploadify.swf',
		'script': '{SITE_URL}index.php',
		'scriptData':{'app':'photo','ac':'do','ts':'flash','userid':'{$TS_USER[user][userid]}','albumid':'{$albumid}'},
		'method':'GET', 
		'cancelImg': '{SITE_URL}public/js/uploadify/cancel.png',
		'folder': 'UploadFile',
		'queueID': 'fileQueue',
		'auto': true,
		'multi': true,
		'buttonImg':'{SITE_URL}public/images/upload.png',
		'fileDesc':'jpg,gif,png图片格式',
		'fileExt':'*.jpg;*.gif;*.png;*bmp;*jpeg;',
		'onAllComplete' : function(event,data) {
			window.location = "{SITE_URL}index.php?app=photo&ac=ajax&ts=info&albumid={$albumid}&addtime={$addtime}";
		}

	});

})

</script>
<div class="pd010">
<div id="fileQueue"></div>
<input type="file" id="uploadify" />
<p>
<a href="javascript:$('#uploadify').uploadifyUpload()">上传</a>| 
<a href="javascript:$('#uploadify').uploadifyClearQueue()">取消上传</a>
| <a href="{SITE_URL}index.php?app=photo&ac=ajax&ts=album">返回我的相册</a>
</p>
</div>
</body>
</html>